function confirmExit() {
    var result = confirm('你确定要退出系统吗？');
    if (result) {
        window.location.href = 'index.html';
    }
}